package com.wish.g1.house.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wish.g1.house.entity.Housing;

import java.util.List;

/**
 * <p>
 * 楼盘表 服务类
 * </p>
 *
 * @author Dragon
 * @since 2022-11-18
 */
public interface IHousingService extends IService<Housing> {

        /**
         * 查询楼盘
         *
         * @param id 楼盘主键
         * @return 楼盘
         */
        public Housing selectHousingById(Long id);


        /**
         * 查询楼盘列表
         *
         *
         * @param housing 楼盘
         * @return 楼盘集合
         */
        public List<Housing> selectHousingList(Housing housing);

        /**
         * 新增楼盘
         *
         * @param housing 楼盘
         * @return 结果
         */
        public int insertHousing(Housing housing);

        /**
         * 修改楼盘
         *
         * @param housing 楼盘
         * @return 结果
         */
        public int updateHousing(Housing housing);

        /**
         * 批量删除楼盘
         *
         * @param ids 需要删除的楼盘主键集合
         * @return 结果
         */
        public int deleteHousingByIds(Long[] ids);

        /**
         * 删除楼盘信息
         *
         * @param id 楼盘主键
         * @return 结果
         */
        public int deleteHousingById(Long id);
}
